<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/file" prefix="f"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<form id="DianChiForm">
	<s:hidden name="model.id"></s:hidden>
	<s:hidden name="model.crateDate"></s:hidden>
	<s:hidden name="model.updateDate"></s:hidden>
	<table width="100%" border="0" id="DianChiTable" cellpadding="0"
		cellspacing="0" class='edit_table'>
		<tbody>
			<tr>
				<th>
					电池品牌:
				</th>
				<td>
					<s:select name="model.pinPai" list="dianchiPinPais" listKey="key" listValue="value"></s:select>
				</td>
			</tr>
			<tr>
				<th>
					电池型号:
				</th>
				<td>
					<s:select name="model.xingHao"	list="dianchiTypes" listKey="key" listValue="value"></s:select>
				</td>
			</tr>
			<tr>
				<th>
					适应车型:
				</th>
				<td  class="s_checkboxlist" >
					<s:checkboxlist name="ids" list="cheXingList" listKey="id" listValue="name"/>
				</td>
			</tr>
			<tr>
				<th>
					重量（kg）:
				</th>
				<td>
				<input type="text" name='model.zhongliang' value="${model.zhongliang}" style="" maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					里程（公里）:
				</th>
				<td >
					<input type="text" name='model.licheng' value="${model.licheng}" style="" maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					电池图片:
				</th>
				<td>
					<f:oneJcrop name="model.imageUrl" folder="dianchiImg" fileName="${model.imageUrl}" width="450" height="310" minwidth="300" minheight="210"  />
					<span  style="color:red;"> 电池图片建议尺寸(像素)宽*高:450*310.大小不超过100KB</span>
				</td>
			</tr>
			<tr>
				<th>
					市场换够价:
				</th>
				<td>
					<input type="text" name='model.marketPrice' value="${model.marketPrice}" style="" maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					本网换购价:
				</th>
				<td>
					<input type="text" name='model.ourPrice' value="${model.ourPrice}" maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
				显示顺序:
				</th>
				<td>
					<input type="text" name='model.sort' value="${model.sort}" maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
				电池详情:
				</th>
				<td>
					<s:textarea name="model.detailInfo"   rows="3"  cssStyle="width:99%"></s:textarea>
				</td>
			</tr>
			<tr>
				<th>
				显示状态:
				</th>
				<td class="s_checkboxlist" >
				    <s:if test='1==model.state'>
				    <s:radio list="#{'1':'显示','0':'不显示'}"  name="model.state" value="1" ></s:radio>
				    </s:if>
				    <s:elseif test='0==model.state'> <s:radio list="#{'1':'显示','0':'不显示'}"  name="model.state" value="0" ></s:radio>
				    </s:elseif>
				    <s:else><s:radio list="#{'1':'显示','0':'不显示'}"  name="model.state" value="1" ></s:radio></s:else>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span>【排序说明】值越少，排序越靠前，在未改变默认排序的情况下，后添加的排序靠前</span>
				</td>
			</tr>
		</tbody>
	</table>
	 <iframe name="downloadFileIframe" style="display:none" ></iframe>
</form>
